home *** CD-ROM | disk | FTP | other *** search
/ Australian Personal Computer 2003 July / CD 2 Debian 3.0r1 / Debian.iso / isolinux / root.bin / root / etc / init.d / check_fb.sh next >
Encoding:
Linux/UNIX/POSIX Shell Script  |  2000-03-19  |  368 b   |  16 lines

  1. #!/bin/sh
  2.  
  3. # If this is a Linux console, and it's a vga16 framebuffer, reset the
  4. # palette, which has been set to the optimal colors for display of the
  5. # boot logo.
  6.  
  7. if ! /usr/bin/tty | grep -q ttyS ; then
  8.     # not a serial console.
  9.     if [ -f /proc/fb ]; then
  10.     # They have a framebuffer device.
  11.     # That means we have work to do...
  12.     echo -n "]R"
  13.     fi
  14. fi;
  15. exit 0;
  16.